package com.yang.dao.impl;

import java.sql.SQLException;
import java.util.List;
import java.util.Map;

import org.springframework.stereotype.Repository;

import com.yang.common.CommonDAO;
import com.yang.dao.DepartmentDAO;

@Repository("DepartmentDAOImpl")
public class DepartmentDAOImpl extends CommonDAO implements DepartmentDAO{

	public List<Map<String, String>> getDepartmentList(String parentId)
			throws SQLException {
		
		return sqlMapClient.queryForList("department.getDeptList", parentId);
	}

	public List<Map<String, String>> getDepartmentName(String deptId)
			throws SQLException {
		
		return  sqlMapClient.queryForList("department.getDeptName", deptId);
	}
	
	public List<Map<String, String>> getDeptFullNameList(String parentId) 
			throws SQLException {
		
		return sqlMapClient.queryForList("department.getDeptNameList", parentId);
	}

}
